package com.cx.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.FieldType;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.io.Serializable;

/**
 * @author 残星
 * @Description LOL-对局队伍信息 映射
 * @date 2022-11-30
 */
@Setter
@Getter
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "LOL_BATTLE_TEAM")
@Document(value = "lol_battle_team")  // 指定mongodb中的集合
public class LolBattleTeamPo implements Serializable {
    private static final long serialVersionUID = -7686285033818000392L;
    /**
     * MongoDb主键
     */
    @MongoId(targetType = FieldType.OBJECT_ID)
    @TableField(exist = false)
    private String id;
    /**
     * 主键
     */
    @TableId
    private Long jobId;
    /**
     * 对局ID
     */
    @TableField(value = "GAME_ID")
    private Long gameId;
    /**
     * 队伍：红色方/蓝色方
     */
    @TableField(value = "TEAM")
    private String team;
    /**
     * 队伍总击杀
     */
    @TableField(value = "TOTAL_KILLS")
    private Integer totalKills;
    /**
     * 队伍总助攻
     */
    @TableField(value = "TOTAL_ASSISTS")
    private Integer totalAssists;
    /**
     * 队伍总死亡
     */
    @TableField(value = "TOTAL_DEATHS")
    private Integer totalDeaths;
}
